package com.ieheima.myconverted;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;

public class TestUser1 {
    public static void main(String[] args) throws IOException {
        User user = new User("zhangsan","1234");

        ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream("d.txt"));

        oos.writeObject(user);
        oos.close();
    }
}
